package com.fzy.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.resources.client.CssResource.NotStrict;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
import com.mvp4g.client.Mvp4gModule;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Test0819 implements EntryPoint {

	interface GlobalResources extends ClientBundle {
		@NotStrict
		@Source( "resources/global.css" )
		CssResource css();
	}
	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		// Inject global styles.
		GWT.<GlobalResources> create( GlobalResources.class ).css().ensureInjected();

		Mvp4gModule module = (Mvp4gModule)GWT.create( Mvp4gModule.class );
		module.createAndStartModule();
		RootLayoutPanel.get().add( (Widget)module.getStartView() );
	}
}
